package com.baizhiedu.rsm.controller;

import com.baizhiedu.rsm.entity.ZxTeacher;
import com.baizhiedu.rsm.service.ZxTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author lby
 */
@Controller
@RequestMapping("zxteacher")
public class ZxTeacherController {
    @Autowired
    private ZxTeacherService zxTeacherService;

    /**
     * 获取所有的咨询老师信息
     * @return
     */
    @RequestMapping("showall")
    @ResponseBody
    public List<ZxTeacher> showAll(){
        return zxTeacherService.showAll();
    }
}
